<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <title>流程属性</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all">
  <link rel="stylesheet" th:href="@{/style/custom.css}" media="all">
</head>
<body>

<div class="layui-form" lay-filter="attribute-form-edit" id="attribute-form-edit" style="padding: 20px 30px 0 0;">
  <input type="hidden" id="id" name="id" th:value="${attribute.id}">
  <input type="hidden" id="procDefId" name="procDefId" th:value="${attribute.procDefId}">
  <div class="layui-form-item">
    <label class="layui-form-label">通知类型</label>
    <div class="layui-input-block">
      <select name="eventType" id="eventType" lay-search lay-verify="required">
        <option value="">全部</option>
        <option th:each="obj:${eventType}" th:value="${obj.key}" th:text="${obj.value}" th:selected="${obj.key == attribute.ext1}"></option>
      </select>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">属性名</label>
    <div class="layui-input-block">
      <input type="text" name="attrName" th:value="${attribute.attrName}" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input" lay-affix="clear">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">属性值</label>
    <div class="layui-input-block">
      <input type="text" name="attrValue" th:value="${attribute.attrValue}" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input" lay-affix="clear">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">备注</label>
    <div class="layui-input-block">
      <textarea name="remark" placeholder="请输入内容" th:text="${ attribute.remark }" class="layui-textarea"></textarea>
    </div>
  </div>
  <div class="layui-form-item layui-hide">
    <input type="button" lay-submit lay-filter="LAY-attribute-front-submit" id="LAY-attribute-front-submit" value="确认">
  </div>
</div>

<script th:src="@{/layui/layui.js}"></script>
<script>
  layui.config({
    base: '/'
  }).use(['index'], function () {
    const $ = layui.$
        , admin = layui.admin
        , form = layui.form
        , table = layui.table
        , dropdown = layui.dropdown
        , layer = layui.layer;

  });
</script>
</body>
</html>